/*
 * Package: org.grassfield.common.entity
 * FileName: Module.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package bean;

import java.util.Set;

/**
 * The Class Module.
 */
public class Module {
	private Long id;
	private String moduleName;
	private boolean enabled;
	private Set<MenuItem> menuItemList;

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * Gets the module name.
	 * 
	 * @return the module name
	 */
	public String getModuleName() {
		return moduleName;
	}

	/**
	 * Sets the module name.
	 * 
	 * @param moduleName
	 *            the new module name
	 */
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	/**
	 * Checks if is enabled.
	 * 
	 * @return true, if is enabled
	 */
	public boolean isEnabled() {
		return enabled;
	}

	/**
	 * Sets the enabled.
	 * 
	 * @param enabled
	 *            the new enabled
	 */
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	/**
	 * Gets the menu item list.
	 * 
	 * @return the menu item list
	 */
	public Set<MenuItem> getMenuItemList() {
		return menuItemList;
	}

	/**
	 * Sets the menu item list.
	 * 
	 * @param menuItemList
	 *            the new menu item list
	 */
	public void setMenuItemList(Set<MenuItem> menuItemList) {
		this.menuItemList = menuItemList;
	}
}
